package project.shared.messages;

import project.shared.player.Player;

/**
 * The Class WinMessage - used to send winner and game end information.
 */
public class WinMessage extends Message {

	/** The universal version identifier. */
	private static final long serialVersionUID = 1L;

	/** The winner of the game. */
	public Player winner;

	/** The games id. */
	public transient int gameId;

	/**
	 * Makes a new win message.
	 * 
	 * @param winner
	 *            the winner of the game
	 * @param gameId
	 *            the game id
	 */
	public WinMessage(Player winner, int gameId) {
		this.gameId = gameId;
		this.winner = winner;
	}
}
